# Generated by Django 2.1.2 on 2019-02-18 02:20

import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
import website.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('slug', models.SlugField()),
                ('cover', models.ImageField(null=True, upload_to=website.models.album_path)),
                ('license', models.CharField(max_length=25)),
                ('release_date', models.DateField(default=datetime.datetime(2019, 2, 18, 2, 20, 34, 846978, tzinfo=utc))),
                ('created_date', models.DateField(auto_now_add=True)),
                ('modified_date', models.DateField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Artist',
            fields=[
                ('handle', models.SlugField(primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=200)),
                ('bio', models.CharField(blank=True, max_length=1000)),
                ('logo', models.ImageField(null=True, upload_to=website.models.artist_path)),
                ('created_date', models.DateField(auto_now_add=True)),
                ('modified_date', models.DateField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Song',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('license', models.CharField(max_length=25)),
                ('nsfw', models.BooleanField(default=False)),
                ('file', models.FileField(upload_to=website.models.song_path)),
                ('release_date', models.DateField(default=datetime.datetime(2019, 2, 18, 2, 20, 34, 847904, tzinfo=utc))),
                ('created_date', models.DateField(auto_now_add=True)),
                ('modified_date', models.DateField(auto_now_add=True)),
                ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Album')),
                ('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Artist')),
            ],
        ),
        migrations.AddField(
            model_name='album',
            name='artist',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Artist'),
        ),
    ]
